home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 71
/
MOBICLIC 71.ISO
/
mac
/
DATA
/
COMMUN
/
temp0001
/
00210_Script_GESTION_PISTE_FLASH_RECRES
< prev
next >
Wrap
Text File
|
2004-12-05
|
5KB
|
113 lines
global gze_Label
property p_cettePiste, p_Nodepiste,p_SWF,pEscape,pdeclencheur,p_aiguillage, pNopisteSon,p_start,p_Musik,p_acteur
property p_nomaction,pNbFrames,pSilence,p_attente
----------------------------------
on getPropertyDescriptionList me
return [\
#pdeclencheur:[#comment:"Θchappement α la fin du :",#format:#string,#range:["SON","SWF","Le plus long"],#default: "Le plus long"],\
#pNopisteSon:[#comment:"No piste son:",#format:#integer,#range:[2,3,4,5,6,7,8],#default: 3],\
#p_aiguillage:[#comment:"branchement α la sortie :",#format:#string,#range:["frame suivante","marker suivant"],#default: "marker suivant"],\
#p_Musik:[#comment: "gestion musique?",#format: #string,#range:["la couper","la laisser","la relancer"], #default:"la laisser"],\
#p_attente:[#comment: "boucle d'attente?",#format: #boolean, #default:FALSE]\
]
end
----------------------------------------
on beginsprite me
p_Nodepiste = me.spriteNum
p_cettePiste = sprite(p_Nodepiste)
p_acteur = p_cettePiste.member.name
p_SWF = p_cettePiste.member
p_nomaction = p_SWF.name
fin = length(p_nomaction)
if p_nomaction.char[fin-1..fin] = "_M" then
pSilence = 1
else
pSilence = 0
end if
p_start = the frame
pEscape = p_cettePiste.endFrame
pNbFrames = p_SWF.framecount
gze_Label = the frameLabel
end
-----------------------------------
on exitFrame me
the soundKeepDevice = 0
if the frame = p_start then----------------sur la premiΦre frame du swf
case(p_musik) of----------------------on coupe Θventuellemnet la musique
"la couper":
coupeson(1)
niveauSon()
"la laisser":
nothing
"la relancer":
niveauSon()
puppetSound(1,"MUSIK_"&zRacine())
end case
if pSilence = 0 then---------------------on joue le son rΘcrΘ
joueson(p_nomaction,pNopisteSon)
end if
else
if the frame = pEscape then----------------sur la derniΦre frame du swf
case(p_attente) of
0:
case(pdeclencheur) of
"SON":-------------------------------------si l'Θchappement se fait α la fin du son
if not(soundBusy(pNopisteSon)) then----------------si le son s'arrΩte
niveauSon()
aiguillage(p_aiguillage)---------------on sort de la boucle
else
go the frame---------------------------sinon on continue α boucler
end if
"SWF":-------------------------------------si l'Θchappement se fait α la fin du swf
if p_cettePiste.frame = pNbFrames then----------------si le swf est arrivΘ α son terme
coupeson(pNopisteSon)
niveauSon()
aiguillage(p_aiguillage)---------------on sort de la boucle
else
go the frame---------------------------sinon on continue α boucler
end if
"Le plus long":-------------------------------------si l'Θchappement est calΘ sur le mΘdia le plus long
if not(soundBusy(pNopisteSon)) then----------------si le son s'arrΩte
if p_cettePiste.frame = pNbFrames then----------------et si le swf est arrivΘ α son terme
aiguillage(p_aiguillage)----------------------------------on sort de la boucle
else
go the frame---------------------------sinon on continue α boucler
end if
else-----------------------------------------------si le swf est arrivΘ α son terme
if not(soundBusy(pNopisteSon)) then----------------si le son s'arrΩte
niveauSon()
aiguillage(p_aiguillage)----------------------------------on sort de la boucle
else
go the frame---------------------------sinon on continue α boucler
end if
end if
end case
1:
cursor 280
go the frame
end case
end if
end if
end
---------------------------------------
on aiguillage ZUT
case(ZUT) of
"frame suivante":------------------------------branchement α la frame suivante
go the frame +1
"marker suivant":------------------------------branchement au marker suivant
go marker(+1)
end case
end
------------------------------------
on mouseUp
coupeson(pNopisteSon)
niveauSon()
aiguillage(p_aiguillage)----------------------------------on sort de la boucle
end
------------
on endSprite me
cursor -1
end
----------------